package com.crane.oss.sys.bean.request.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author bealon
 * @email ccsu123456@qq.com
 * @date 2018年12月28日 12时22分23秒
 */
@Getter
@Setter
@ToString
@ApiModel(description = "修改密码参数")
public class UpdateUserPassWordRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "原密码", name = "password")
    @NotNull(message = "password不能为空")
    @Size(max = 100, message = "password长度超长")
    private String password;

    @ApiModelProperty(value = "新密码", name = "newPassword")
    @NotNull(message = "newPassword不能为空")
    @Size(max = 100, message = "newPassword长度超长")
    private String newPassword;

}
